import time
scale = 10
print('-----------执行开始-----------')
for i in range(scale + 1):
    done= '**' * i
    undone = '..' * (scale - i)
    percent = i / scale
    #格式化输出
    print('{:>4.0%}[{}->{}]'.format(percent, done, undone))
    time.sleep(0.1)
    print('----------执行结束-----------')